

<admintpl file="header" />

<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li class="active">
				<a href="#">编辑</a>
			</li>
			<li>
				<a href="{:sp_plugin_url('Map://AdminIndex/index')}">返回</a>
			</li>

		</ul>
		<div class="common-form">
		<link rel="stylesheet" href="/plugins/File/View/Js/CodeMirror/codemirror.css">
		<link rel="stylesheet" href="/plugins/File/View/Js/CodeMirror/theme/mdn-like.css">
		<script type="text/javascript" src="/plugins/File/View/Js/CodeMirror/codemirror.js"></script>
		<script type="text/javascript" src="/plugins/File/View/Js/CodeMirror/xml.js"></script>
		<script type="text/javascript" src="/plugins/File/View/Js/CodeMirror/javascript.js"></script>
			<style>
				.table td {
					font-size: 14px;
					line-height: 20px;
				}
				
				.page a {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
					border-left-width: 0;
				}
				
				.page span {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
				}
				
				.page .prev {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
				}
				.CodeMirror{height: 500px;}
			</style>

			<div class="table_list">
				<form action="{:sp_plugin_url('Map://AdminIndex/robot')}" method="post">
					
				
				<table width="100%" class="table table-hover">

					<tbody>
						
						<tr>
							<td>文件名称:</td>
							<td>
								robots.txt
							</td>
						</tr>
						<tr>
							<td width="60">文件内容:</td>
							<td >
								
								
								
								<textarea id="content" name="content"><foreach name="lines" item="vo">{$vo}</foreach></textarea>
								<script type="text/javascript">
								$(function(){
								    var mirror_option = {
								        mode: "application/xml",
								        lineNumbers   :true,//显示行号
								        indentUnit    :4,//缩进空格数
								        smartIndent   :true,//智能缩进
								        theme         :"mdn-like",//主题
								
								        matchBrackets :true,
								        gutter        :true,
								        fixedGutter   :true,
								        indentWithTabs:true,
								        readOnly      :false,
								        lineWrapping  :true,
								        height        :600,
								        enterMode     :"keep",
								        tabMode       :"shift",
								    };
								    var mirror_area = document.getElementById("content");
								    var mirror = CodeMirror.fromTextArea(mirror_area, mirror_option);
								    <notempty name="value">
								    var mirror_data = {:json_encode($value)};
								    mirror.setValue(mirror_data);
								    </notempty>
								});
								</script>
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<input type="submit" class="btn btn-blue" style="background-color: #5BC0DE;"/>
							</td>
						</tr>
					</tbody>
				</table>
	
				</form>
			</div>
			
		</div>
	</div>
	<script src="__ROOT__/Public/js/common.js?"></script>
</body>

</html>